package com.zy.edu.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

import java.util.Date;

/**
 * @author: HuangHaiShui
 * @description: 导入模板
 * @date: 2021/7/16 9:14
 * @version: 1.0
 */
@ContentRowHeight(20)    //内容行高
@HeadRowHeight(20)
@ColumnWidth(30)
@Data
public class UserTem {

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;
    /**
     * 手机号码
     */
    @ExcelProperty(value = "手机号码")
    private String tel;
    /**
     * 账号
     */
    @ExcelProperty(value = "账号")
    private String account;

    @Override
    public boolean equals (Object o) {
        UserTem x = (UserTem) o;
        if (x.getAccount().equals(this.account)) {
            return true;
        }
        return false;
    }

}
